package view;

import java.awt.BorderLayout;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;

/**
 * Logger window panel
 */
public class LoggerPanel extends JPanel
{
	private LoggerTable logger = null;
	
	/**
	 * C'tor
	 */
	public LoggerPanel()
	{	
		setLayout(new BorderLayout());
		
		JLabel label = new JLabel("Logger:");
		add(label, BorderLayout.NORTH);
		
		logger = new LoggerTable();
		
		JScrollPane sc = new JScrollPane();
 		sc.setViewportView(logger); 
        
		add(logger.getLoggerTableHeader(), BorderLayout.CENTER);
		add(logger, BorderLayout.SOUTH);
	}
}
